package com.example.demo03_mvm.db;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

import io.reactivex.Completable;
import io.reactivex.Flowable;

@Dao
public interface KfDao {
    @Insert
    Completable insert(KfEntity kf);

    @Query("select * from kf where gid= :gid")
    Flowable<List<KfEntity>> getMsgByGid(int gid);
}
